package com.wang.auth.mapper;

import com.wang.model.system.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.model.wechat.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author wang
 * @since 2023-04-17
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    public List<Long> queryMenuIdsByRoleId(Long roleId);

    //一个参数不需要加@Param
    List<SysMenu> findMenuListByUserId(@Param("userId") Long userId);
}
